package com.xdm.ui.adapter.android;

import android.app.Activity;
import android.os.Bundle;

import com.xdm.ds.XmDataSourceFactory;
import com.xdm.ds.adapter.file.FileFactory;
import com.xdm.impl.XManagerImpl;
import com.xdm.resource.XmResourceFactory;
import com.xdm.resource.adapter.android.AndroidResourceFactory;
import com.xdm.ui.XmUiFactory;

/**
 * Entry point class
 * 
 * @author Alexander Lapygin
 */
public class AndroidManager extends Activity {
	
	public AndroidManager() {
		super();
	}

	/** Entry point method */
	public void onCreate(Bundle icicle) {
		super.onCreate(icicle);
		setContentView(R.layout.main);
		XmUiFactory uiFactory = AndroidUiFactory.getInstanse(this);
		XmDataSourceFactory dsFactory = FileFactory.getInstanse();
		XmResourceFactory xmResourceFactory = AndroidResourceFactory.getInstanse(this);
		XManagerImpl manager = new XManagerImpl(uiFactory, dsFactory, xmResourceFactory);
	}
}